﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MovieCollectionManager
{
    public partial class FullSizedImageForm : Form
    {
        private Image image;

        public FullSizedImageForm(Image newImage)
        {
            image = newImage;
            InitializeComponent();
        }

        private void FullSizedImageForm_Load(object sender, EventArgs e)
        {
            pictureBoxArt.Image = image;
        }

        private void pictureBoxArt_Click(object sender, EventArgs e)
        {
            pictureBoxArt.Image = null;
            Close();
        }

        private void FullSizedImageForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            pictureBoxArt.Image = null;
        }
    }
}
